FontMetrics
FontMetrics
Obtain font information as fixed-point data types FMetricRec *theInfo ; address of structure to receive size info about the current font/size/style as found in the active GrafPort. The difference is that FontMetrics supplies its information as fixed-point (i.e., fractional) values.
theInfo is the address of a 20-byte FMetricRec structure. Upon return, its fields contain the font's ascent, descent, leading, etc., sizes, defined
as Fixed data types (i.e., the high word is the integer portion and the low word is the fractional portion).
Notes: Since a fractional screen dot is pretty meaningless,
FontMetrics is used mainly by programs that output to a laser printer. You may wish to use it in a page-preview feature to be more exact in
character placement.